package com.woniuxy.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 订单状态变更记录实体类
 */
@Data
@TableName("order_status_log")
public class OrderStatusLog {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("order_id")
    private Long orderId;
    
    @TableField("order_no")
    private String orderNo;
    
    @TableField("old_status")
    private String oldStatus;
    
    @TableField("new_status")
    private String newStatus;
    
    @TableField("change_reason")
    private String changeReason;
    
    @TableField("operator_id")
    private Long operatorId;
    
    @TableField("operator_name")
    private String operatorName;
    
    @TableField(value = "change_time", fill = FieldFill.INSERT)
    private LocalDateTime changeTime;
}

